﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Domotica.Windows.Input;
using System.Windows.Ink;
using System.Windows.Input;
using System.Reflection;
using System.Windows.Automation.Peers;
using Domotica.Gazing;

namespace Domotica.Windows.Controls
{
    public class GazeWindow : Window, IGazeable
    {
        public override void BeginInit()
        {
            base.BeginInit();
            GazeDevice.Current.Register(this);
        }

        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            GazeDevice.Current.UnRegister(this);
        }

        public event GazeEventHandler GazeEvent;

        private void DoGazeEvent(GazeEventArgs e)
        {
            GazeEventHandler handler = this.GazeEvent;
            if (handler != null)
            {
                handler(this, e);
            }
        }

        public virtual void OnFaceMove(GazeEventArgs e)
        {
            
        }
    }

    public class GazingWindowExtenderList : List<GazeWindow>
    { }
}
